package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.ScenicReviews;
import cn.wolfcode.luowowo.article.query.ScenicReviewsQuery;

import java.util.List;

public interface ScenicReviewsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ScenicReviews record);

    ScenicReviews selectByPrimaryKey(Long id);

    List<ScenicReviews> selectAll();

    int updateByPrimaryKey(ScenicReviews record);

    List<ScenicReviews>  queryForList(ScenicReviewsQuery qo);

    List<ScenicReviews> selectTop5();

    List<ScenicReviews> selectHot10();

    List<ScenicReviews> getByParentId(Long id);

    ScenicReviews selectByScenic(Long id);
}